<div id = "main">
	<div class = "container">
		<div class = "page_title">机器人列表</div>
		<div class = "bottom_title">
			<a class = "usual_button" href = "addqq.php">添加扣扣</a>
			<a class = "usual_button" href = "http://zc.qq.com" target = "_blank">注册扣扣</a>
			<a class = "usual_button" href = "http://aq.qq.com" target = "_blank">安全中心</a>
		</div>
		<table border = "0" cellpadding = "0" cellspacing = "0">
			<tr>
				<th>扣扣账号</th>
				<th>状态</th>
				<th>操作</th>
			</tr>
			<?php if ($qqArray) { ?>
			<?php foreach ($qqArray as $qq) { ?>
			<tr>
				<td><?php echo $qq['uin'];?></td>
				<td><?php echo $qq['is_run'] == 0 ? "未运行" : ($qq['status'] != StatusUtil::ONLINE ? "未上线" : "运行中");?></td>
				<td><a class = "setbtn" href = "delqq.php?uin=<?php echo $qq['uin'];?>">删除</a><a class = "setbtn" href = "setqq.php?uin=<?php echo $qq['uin'];?>">设置</a><a class = "setbtn" href = "runqq.php?uin=<?php echo $qq['uin'];?>">记录</a></td>
			</tr>
			<?php } ?>
			<?php } else { ?>
			<tr><td colspan="3">暂无账号，请添加！</td></tr>
			<?php } ?>
		</table>
	</div>
</div>